import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/components/home/home'
import vip from '@/components/Vip/Vip'
import shopcart from '@/components/Cart/Cart'
import search from '@/components/Search/Search'
import newsList from '@/components/news/newsList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/vip',
      name: 'vip',
      component: vip
    },
    {
      path: '/cart',
      name: 'shopcart',
      component: shopcart
    },
    {
      path: '/search',
      name: 'search',
      component: search
    },
    {
      path: '/news/list',
      name: 'news.list',
      component: newsList
    }
  ]
})
